const path = require("path")
module.exports = {
  port: 30002,
  host: "0.0.0.0",
  auth: {
    expires: 86400,
    key: 'token'
  },
  publicPath:path.resolve(__dirname,"../static"),
  uploadDir:'/uploads',
  uploadOptions:{
    // 支持文件格式
    multipart: true,
    formidable: {
      // 上传目录
      uploadDir: path.join(path.resolve(__dirname,"../static"),'/uploads'),
      // 保留文件扩展名
      keepExtensions: true,
    }
  },
  origin: [
    "http://0.0.0.0:8080"
  ]
}
